﻿namespace ClassyBlog.Infrastructure.Specs.Unit
{
    using Machine.Specifications;

    [Subject(typeof(MarkdownFormatter))]
    public class when_formatted_with_markdown_formatter
    {
        static MarkdownFormatter formatter;
        static string output;

        Establish context = () => formatter = new MarkdownFormatter();

        Because of = () =>
            output = formatter.Format("Hello World\n==========");

        It should_return_html = () =>
            output.ShouldContain("<h1>Hello World</h1>");
    }
}